<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Html5中画布元素</title>
</head>
<style>
    #canvas {
        border: 1px solid black;
    }
</style>

<body>
    <canvas id="canvas" width="400px" height="400px"></canvas>
</body>
<script type="text/javascript" src="draw.js" charset="utf-8"></script>

</html>